.class Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;
.super Ljava/lang/Object;
.source "FragmentMeasuresList.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)V
    .locals 0

    .line 348
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView<",
            "*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .line 351
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$600(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    move-result-object p1

    invoke-virtual {p1, p3}, Llt/noframe/gpsfarmguide/adapters/MeasuresAdapterWithMap;->getItem(I)Llt/noframe/gpsfarmguide/models/MeasureListModel;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/MeasureListModel;->getId()I

    move-result p1

    const p3, 0x7f090096

    .line 352
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/CheckBox;

    .line 353
    invoke-virtual {p2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result p3

    xor-int/lit8 p3, p3, 0x1

    invoke-virtual {p2, p3}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 354
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-static {p2}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$600(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p2

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p3

    invoke-virtual {p2, p3}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_0

    .line 355
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-static {p2}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$600(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p2

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    goto :goto_0

    .line 357
    :cond_0
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-static {p2}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$600(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p2

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 358
    :goto_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList$6;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$600(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;)Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/adapters/MeasuresSelectionAdapter;->getSelectedFields()Ljava/util/ArrayList;

    move-result-object p2

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p2

    invoke-static {p1, p2}, Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;->access$700(Llt/noframe/gpsfarmguide/views/FragmentMeasuresList;I)V

    return-void
.end method
